package com.zhuss.core.processor;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.zhuss.common.StartSqlBo;
import com.zhuss.common.StartSqlVo;
import com.zhuss.core.db.dao.ext.ConfigDao;


/**
 * sql 查询
 * @Author: zhushanshuo
 * @Date: 2020/02/20 21:55
 */
@Component("startRead")
public class StartRead {
	
	@Autowired
	private ConfigDao configDao;
	
	public StartSqlVo startSql(StartSqlBo bo) {
		StartSqlVo result = new StartSqlVo();
		List<Map<String, Object>> mapList = configDao.startSql(bo);
		result.setMapList(mapList);
		return result;
	}
	
}
